<?
$handle = fopen("lastupdate.txt", "r");
$time = (int) fread($handle, filesize("lastupdate.txt"));
fclose($handle);
$update = $time - time() + 60;
if ($update < 0)
{
    echo "Updating..";
}
else
{
    echo "Updating in $update seconds";
}
?>